import { MessageBox } from 'element-ui'

const beforeClose = {
    before_close_normal: (resolve) => {
        MessageBox.confirm('确定要关闭这一页吗?', '提示', {
            callback: function (action, instance) {
                if (action === 'confirm') return resolve(true);
                return resolve(false);
            }
        })
    }
}

export default beforeClose